package com.qyhl.module_practice.rank;


import com.qyhl.webtv.commonlib.entity.civilized.PracticeRankBean;

public class PracticeRankPresenter implements PracticeRankContract.PracticeRankPresenter {
    private PracticeRankModel mModel;
    private PracticeRankContract.PracticeRankView mView;

    PracticeRankPresenter(PracticeRankContract.PracticeRankView mView) {
        this.mView = mView;
        this.mModel = new PracticeRankModel(this);
    }

    @Override
    public void getData(String insId, int type) {
        mModel.getData(insId, type);
    }

    @Override
    public void setData(PracticeRankBean bean) {
        mView.setData(bean);
    }

    @Override
    public void setError(String msg) {
        mView.setError(msg);
    }
}
